<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CustomerListDialog.aspx.vb" Inherits="MIMS_WRS.Web.CustomerListDialog" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>CustomerListDialog</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="javascript" src="../Js/EventCapture.js"></script>
		<script language="javascript">
		<!--
		function Select_onclick() {
			var lb = window.document.getElementById('lbCustomer');
			
			if (lb.selectedIndex>=0) {
				var obj = new Object();
				obj.Name = lb.options[lb.selectedIndex].text;
				obj.ID = lb.options[lb.selectedIndex].value;
				window.returnValue=obj;
				window.close();
			} else {
				alert('Please chose an item from the list');
			};
		}
		//-->
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<table border="0" width="100%" height="100%" id="Table1">
				<tr height="99%">
					<td><asp:ListBox id="lbCustomer" runat="server" Width="100%" Height="100%" EnableViewState="False"></asp:ListBox></td>
				</tr>
				<tr height="1%">
					<td align="center">
						<INPUT style="WIDTH: 70px" type="button" value="Select" onclick="Select_onclick()"><INPUT style="WIDTH: 70px" type="button" value="Cancel" onclick="window.close()"></td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
